package com.gxa.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import java.util.List;


/**
 * @program: erp
 * @description: 客户实体
 * @author: LC
 * @create: 2021-12-02 16:46
 */
@ApiModel("客户对象")
public class Customer {

  @ApiModelProperty(name = "customer_id",notes = "主键",dataType = "Integer",required = false)
  private Integer customer_id;
  @ApiModelProperty(name = "customer_name",notes = "客户名称",dataType = "String",required = true)
  private String customer_name;
  @ApiModelProperty(name = "status",notes = "客户状态：0（回收站），1（正常状态），2（公海状态）",dataType = "Integer",required = false)
  private Integer status;
  @ApiModelProperty(name = "city",notes = "城市类",dataType = "City",required = false)
  private City city;
  @ApiModelProperty(name = "contact",notes = "联系人类",dataType = "Contact",required = false)
  private List<Contact> contact;
  @ApiModelProperty(name = "address",notes = "详细地址",dataType = "String",required = false)
  private String address;
  @ApiModelProperty(name = "post_code",notes = "邮编",dataType = "String",required = false)
  private String post_code;
  @ApiModelProperty(name = "attachment_url",notes = "附件url",dataType = "String",required = false)
  private String attachment_url;
  @ApiModelProperty(name = "remark",notes = "备注",dataType = "String",required = false)
  private String remark;
  @ApiModelProperty(name = "type",notes = "客户类型:通过字典查询后给该字段赋值",dataType = "String",required = false)
  private String type;
  @ApiModelProperty(name = "origin",notes = "客户来源：通过字典查询后给该字段赋值",dataType = "String",required = false)
  private String origin;
  @ApiModelProperty(name = "enable_protected",notes = "是否开启保护期：0（否），1（是）",dataType = "Integer",required = false)
  private Integer enable_protected;
  @ApiModelProperty(name = "protected_deadline",notes = "保护期剩余日期",dataType = "Integer",required = false)
  private Integer protected_deadline;
  @ApiModelProperty(name = "consultation",notes = "咨询项目",dataType = "String",required = false)
  private String consultation;
  @ApiModelProperty(name = "customer_records",notes = "客户操作记录类",dataType = "Customer_Records",required = false)
  private Customer_Records customer_records;

  public Integer getCustomer_id() {
    return customer_id;
  }

  public void setCustomer_id(Integer customer_id) {
    this.customer_id = customer_id;
  }

  public String getCustomer_name() {
    return customer_name;
  }

  public void setCustomer_name(String customer_name) {
    this.customer_name = customer_name;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public City getCity() {
    return city;
  }

  public void setCity(City city) {
    this.city = city;
  }

  public List<Contact> getContact() {
    return contact;
  }

  public void setContact(List<Contact> contact) {
    this.contact = contact;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public String getPost_code() {
    return post_code;
  }

  public void setPost_code(String post_code) {
    this.post_code = post_code;
  }

  public String getAttachment_url() {
    return attachment_url;
  }

  public void setAttachment_url(String attachment_url) {
    this.attachment_url = attachment_url;
  }

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public String getOrigin() {
    return origin;
  }

  public void setOrigin(String origin) {
    this.origin = origin;
  }

  public Integer getEnable_protected() {
    return enable_protected;
  }

  public void setEnable_protected(Integer enable_protected) {
    this.enable_protected = enable_protected;
  }

  public Integer getProtected_deadline() {
    return protected_deadline;
  }

  public void setProtected_deadline(Integer protected_deadline) {
    this.protected_deadline = protected_deadline;
  }

  public String getConsultation() {
    return consultation;
  }

  public void setConsultation(String consultation) {
    this.consultation = consultation;
  }

  public Customer_Records getCustomer_records() {
    return customer_records;
  }

  public void setCustomer_records(Customer_Records customer_records) {
    this.customer_records = customer_records;
  }

  @Override
  public String toString() {
    return "Customer{" +
            "customer_id=" + customer_id +
            ", customer_name='" + customer_name + '\'' +
            ", status=" + status +
            ", city=" + city +
            ", contact=" + contact +
            ", address='" + address + '\'' +
            ", post_code='" + post_code + '\'' +
            ", attachment_url='" + attachment_url + '\'' +
            ", remark='" + remark + '\'' +
            ", type='" + type + '\'' +
            ", origin='" + origin + '\'' +
            ", enable_protected=" + enable_protected +
            ", protected_deadline=" + protected_deadline +
            ", consultation='" + consultation + '\'' +
            ", customer_records=" + customer_records +
            '}';
  }
}
